package com.sxx.mall.product.feign;

import com.sxx.commons.dto.SkuReductionDTO;
import com.sxx.commons.dto.SpuBoundsDTO;
import com.sxx.commons.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: sunxx
 * @Date: 2024/7/21 - 07 - 21 - 22:49
 * @Description: com.sxx.mall.product.feign
 * @version: 1.0
 */
@FeignClient("mall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveFullReductionInfo(@RequestBody SkuReductionDTO dto);

    /**
     * 保存spuBounds积分信息
     */
    @RequestMapping("/coupon/spubounds/saveSpuBounds")
    R saveSpuBounds(@RequestBody SpuBoundsDTO spuBoundsDTO);
}
